package library;

public abstract class Resource {
    private String id;
    private String title;
    private boolean available = true;

    public Resource(String id, String title) {
        this.id = id;
        this.title = title;
    }

    public String getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }

    public abstract void borrow();
    public abstract void returnResource();
}
